/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fgv.service;

import br.com.fgv.ejb.TesteEJBLocal;
import br.com.fgv.model.Teste;
import java.util.List;
import javax.ejb.Stateless;
import javax.ejb.LocalBean;
import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 *
 * @author adao
 */
@WebService
@Stateless
@LocalBean
public class TesteService {

    private TesteEJBLocal testeEJB;

    @WebMethod
    public String setNome(String nome) {
        return "seu nome é " + nome;
    }

    @WebMethod
    public List<Teste> getListaTestes() throws Exception{
        return testeEJB.listarTodos();
    }

    public void recuperar() {
        testeEJB.recuperar(50l);
    }
}
